<div class="grid_15 bottomDoubleMargin">
	<?php if ('' != trim($this->msg)) {?>
	<div  class="helperText"><?php print($this->msg); ?></div>
	<?php } ?>
	<?php if ('' != trim($this->error)) {?>
	<div  class="systemErrorMessage"><?php print($this->error); ?></div>
	<?php } ?>
	<div class="cancelNavigation">[ <a href="./?cmd=editReserveStatus"><?php print( $this->cancelLabel ? $this->cancelLabel : 'Cancel'); ?></a> ]</div>
	<div class="grid_7 suffix_1">
		<div class="grid_7 bordered appOptions shadowed_near">
		<h3>Edit Status</h3>
		<form method="post" action="./?cmd=editReserveStatus">
<?php
		if ($this->status) {
			$enabledAttributes = $this->status->isReserved()
				? 'disabled="disabled"'
				: '';
?>
			<input type="hidden" name="statusId" value="<?php print($this->status->getId()); ?>"/>
<?php 						
		}
?>
			<label class="blockLabel"><span class="labelTextLong">Staff Label:</span> 
				<input type="text" name="staff_label" <?php print($this->status ? 'value="'. htmlentities($this->status->getStaffLabel()) . '"' : ''); ?>/></label>
			<label class="blockLabel"><span class="labelTextLong">Faculty Label:</span> 
				<input type="text" name="faculty_label" <?php print($this->status ? 'value="'. htmlentities($this->status->getFacultyLabel()) . '"' : ''); ?>/></label>
			<label class="blockLabel"><span class="labelText">Description:</span> 
				<textarea type="text" name="description" cols="40"><?php print($this->status ? htmlentities($this->status->getDescription()) : ''); ?></textarea></label>
			<label class="blockLabel"><span class="labelText">Order:</span> 
				<input type="text" name="order" <?php print($this->status ? 'value="'. htmlentities($this->status->getOrder()) . '"' : ''); ?>/></label>
			<label class="blockLabel"><span class="labelText">Enabled:</span> 
				<input type="checkbox" name="enabled" <?php if ($this->status->isEnabled()) { print('checked="checked"'); } print($enabledAttributes);?>/>
				<?php if($this->status->isReserved()) {?>
				<span>This status is reserved by the system.</span>
				<?php }?>
			</label>
			<input type="submit" name="editStatus" value="Edit Status"/>
		</form>
	</div></div>
	<div class="grid_5">
		<div class="grid_5 bordered appOptions shadowed_near">
		<h3>Existing Status Order Guide</h3>
		<p>Statuses are ordered based on their "order" lowest to highest, then alphabetically for any statuses sharing the same "order".</p>
		<ul class="noBullet">
			<?php 
			$activeStatuses = Rd_Request_Status::getOptions();
			foreach($activeStatuses as $status) { ?>
			<li><?php print($status->getOrder());?> - <?php print($status->getLabel());?></li>
			<?php } ?>
			
		</ul>
	</div></div>
	<div class="clear"></div>
</div>